# Maintainer : Daniel Bermond <dbermond@archlinux.org>
# Contributor: grimi

pkgname=python-lhafile
pkgver=0.3.0
pkgrel=3
pkgdesc='LHA archive support for Python'
arch=('loong64' 'x86_64')
url='https://github.com/FrodeSolheim/python-lhafile/'
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
source=("https://github.com/FrodeSolheim/python-lhafile/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('5565641820813c76c74f2199f19f6ee0e3ae1e1c14de1a3a4ea3602f9094cd29')

build() {
    cd "${pkgname}-${pkgver}"
    python setup.py build
}

package() {
    cd "${pkgname}-${pkgver}"
    python setup.py install --root="$pkgdir" --skip-build --optimize='1'
    install -D -m644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
